  /**
   * Generate time : 2016-04-11 13:46:48
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ch.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCHWorkReport 
 * table comment : 班组工作汇报 
 */
public class ZMCHWorkReport extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdMiningName = " ";		/* 矿井名称*/
	private String fdMiningId = " ";		/* 矿井id*/
	private String fdDepartment = " ";		/* 施工部门*/
	private String fdDepartmentId = " ";		/* 施工部门ID*/
	private String fdWorknumId = " ";		/* 生产班次*/
	private String fdWorkPlace = " ";		/* 工作地点*/
	private String fdWorkplanId = " ";		/* 工作安排ID*/
	private String fdFollowPerson = " ";		/* 跟班人员*/
	private BigDecimal fdRs = new BigDecimal("0");		/* 人数*/
	private String fdWorkbeforeTime = " ";		/* 班前确认时间*/
	private String fdWorkbeforeYesorno = " ";		/* 班前确认是否*/
	private String fdWorkmoddleTime = " ";		/* 班中确认时间*/
	private String fdWorkmoddleStatus = " ";		/* 班中确认状态*/
	private String fdWorklastTime = " ";		/* 班末汇报时间*/
	private String fdWorklastOver = " ";		/* 班末汇报完成*/
	private String fdWorklastSafe = " ";		/* 班末汇报安全*/
	private String fdWorkSj = " ";		/* 工作实绩(米，刀)*/
	private String fdStatus = "草拟";		/* 状态*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	private String fdCurrentDate = " ";		/* 当前日期*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井id");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("施工部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("施工部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorknumId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产班次");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkPlace");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("工作地点");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkplanId");
	eiColumn.setFieldLength(16);	
	eiColumn.setDescName("工作安排ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdFollowPerson");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("跟班人员");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRs");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("人数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkbeforeTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("班前确认时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkbeforeYesorno");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("班前确认是否");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkmoddleTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("班中确认时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkmoddleStatus");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("班中确认状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorklastTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("班末汇报时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorklastOver");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("班末汇报完成");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorklastSafe");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("班末汇报安全");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkSj");
	eiColumn.setFieldLength(250);	
	eiColumn.setDescName("工作实绩");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCurrentDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("当前日期");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCHWorkReport() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdMiningName - 矿井名称
	 * @return the fdMiningName
	 */
	public String getFdMiningName() {
		return this.fdMiningName;
	}
	
	/**
	 * set the fdMiningName - 矿井名称
	 */
	public void setFdMiningName(String fdMiningName) {
		this.fdMiningName = fdMiningName;
	}
	/**
	 * get the fdMiningId - 矿井id
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId - 矿井id
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	/**
	 * get the fdDepartment - 施工部门
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 施工部门
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	/**
	 * get the fdDepartmentId - 施工部门ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 施工部门ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	/**
	 * get the fdWorknumId - 生产班次
	 * @return the fdWorknumId
	 */
	public String getFdWorknumId() {
		return this.fdWorknumId;
	}
	
	/**
	 * set the fdWorknumId - 生产班次
	 */
	public void setFdWorknumId(String fdWorknumId) {
		this.fdWorknumId = fdWorknumId;
	}
	/**
	 * get the fdWorkPlace - 工作地点
	 * @return the fdWorkPlace
	 */
	public String getFdWorkPlace() {
		return this.fdWorkPlace;
	}
	
	/**
	 * set the fdProjectId - 工作地点
	 */
	public void setFdWorkPlace(String fdWorkPlace) {
		this.fdWorkPlace = fdWorkPlace;
	}
	/**
	 * get the fdWorkplanId - 工作安排ID
	 * @return the fdWorkplanId
	 */
	public String getFdWorkplanId() {
		return this.fdWorkplanId;
	}
	
	/**
	 * set the fdWorkplanId - 工作安排ID
	 */
	public void setFdWorkplanId(String fdWorkplanId) {
		this.fdWorkplanId = fdWorkplanId;
	}
	/**
	 * get the fdFollowPerson - 跟班人员
	 * @return the fdFollowPerson
	 */
	public String getFdFollowPerson() {
		return this.fdFollowPerson;
	}
	
	/**
	 * set the fdFollowPerson - 跟班人员
	 */
	public void setFdFollowPerson(String fdFollowPerson) {
		this.fdFollowPerson = fdFollowPerson;
	}
	/**
	 * get the fdRs - 人数
	 * @return the fdRs
	 */
	public BigDecimal getFdRs() {
		return this.fdRs;
	}
	
	/**
	 * set the fdRs - 人数
	 */
	public void setFdRs(BigDecimal fdRs) {
		this.fdRs = fdRs;
	}
	/**
	 * get the fdWorkbeforeTime - 班前确认时间
	 * @return the fdWorkbeforeTime
	 */
	public String getFdWorkbeforeTime() {
		return this.fdWorkbeforeTime;
	}
	
	/**
	 * set the fdWorkbeforeTime - 班前确认时间
	 */
	public void setFdWorkbeforeTime(String fdWorkbeforeTime) {
		this.fdWorkbeforeTime = fdWorkbeforeTime;
	}
	/**
	 * get the fdWorkbeforeYesorno - 班前确认是否
	 * @return the fdWorkbeforeYesorno
	 */
	public String getFdWorkbeforeYesorno() {
		return this.fdWorkbeforeYesorno;
	}
	
	/**
	 * set the fdWorkbeforeYesorno - 班前确认是否
	 */
	public void setFdWorkbeforeYesorno(String fdWorkbeforeYesorno) {
		this.fdWorkbeforeYesorno = fdWorkbeforeYesorno;
	}
	/**
	 * get the fdWorkmoddleTime - 班中确认时间
	 * @return the fdWorkmoddleTime
	 */
	public String getFdWorkmoddleTime() {
		return this.fdWorkmoddleTime;
	}
	
	/**
	 * set the fdWorkmoddleTime - 班中确认时间
	 */
	public void setFdWorkmoddleTime(String fdWorkmoddleTime) {
		this.fdWorkmoddleTime = fdWorkmoddleTime;
	}
	/**
	 * get the fdWorkmoddleStatus - 班中确认状态
	 * @return the fdWorkmoddleStatus
	 */
	public String getFdWorkmoddleStatus() {
		return this.fdWorkmoddleStatus;
	}
	
	/**
	 * set the fdWorkmoddleStatus - 班中确认状态
	 */
	public void setFdWorkmoddleStatus(String fdWorkmoddleStatus) {
		this.fdWorkmoddleStatus = fdWorkmoddleStatus;
	}
	/**
	 * get the fdWorklastTime - 班末汇报时间
	 * @return the fdWorklastTime
	 */
	public String getFdWorklastTime() {
		return this.fdWorklastTime;
	}
	
	/**
	 * set the fdWorklastTime - 班末汇报时间
	 */
	public void setFdWorklastTime(String fdWorklastTime) {
		this.fdWorklastTime = fdWorklastTime;
	}
	/**
	 * get the fdWorklastOver - 班末汇报完成
	 * @return the fdWorklastOver
	 */
	public String getFdWorklastOver() {
		return this.fdWorklastOver;
	}
	
	/**
	 * set the fdWorklastOver - 班末汇报完成
	 */
	public void setFdWorklastOver(String fdWorklastOver) {
		this.fdWorklastOver = fdWorklastOver;
	}
	/**
	 * get the fdWorklastSafe - 班末汇报安全
	 * @return the fdWorklastSafe
	 */
	public String getFdWorklastSafe() {
		return this.fdWorklastSafe;
	}
	
	/**
	 * set the fdWorklastSafe - 班末汇报安全
	 */
	public void setFdWorklastSafe(String fdWorklastSafe) {
		this.fdWorklastSafe = fdWorklastSafe;
	}
	/**
	 * get the fdWorkSj - 工作实绩(米，刀)
	 * @return the fdWorkSj
	 */
	public String getFdWorkSj() {
		return this.fdWorkSj;
	}
	
	/**
	 * set the fdWorkSj - 工作实绩(米，刀)
	 */
	public void setFdWorkSj(String fdWorkSj) {
		this.fdWorkSj = fdWorkSj;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	/**
	 * get the fdCurrentDate - 当前日期
	 * @return the fdCurrentDate
	 */
	public String getFdCurrentDate() {
		return this.fdCurrentDate;
	}
	
	/**
	 * set the fdCurrentDate - 当前日期
	 */
	public void setFdCurrentDate(String fdCurrentDate) {
		this.fdCurrentDate = fdCurrentDate;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMiningName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningName")), fdMiningName));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdWorknumId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorknumId")), fdWorknumId));
		setFdWorkPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkPlace")), fdWorkPlace));
		setFdWorkplanId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkplanId")), fdWorkplanId));
		setFdFollowPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFollowPerson")), fdFollowPerson));
		setFdRs(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdRs")), fdRs));
		setFdWorkbeforeTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkbeforeTime")), fdWorkbeforeTime));
		setFdWorkbeforeYesorno(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkbeforeYesorno")), fdWorkbeforeYesorno));
		setFdWorkmoddleTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkmoddleTime")), fdWorkmoddleTime));
		setFdWorkmoddleStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkmoddleStatus")), fdWorkmoddleStatus));
		setFdWorklastTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorklastTime")), fdWorklastTime));
		setFdWorklastOver(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorklastOver")), fdWorklastOver));
		setFdWorklastSafe(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorklastSafe")), fdWorklastSafe));
		setFdWorkSj(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkSj")), fdWorkSj));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdCurrentDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCurrentDate")), fdCurrentDate));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMiningName",StringUtils.toString(fdMiningName, eiMetadata.getMeta("fdMiningName")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdWorknumId",StringUtils.toString(fdWorknumId, eiMetadata.getMeta("fdWorknumId")));	
			map.put("fdWorkPlace",StringUtils.toString(fdWorkPlace, eiMetadata.getMeta("fdWorkPlace")));	
			map.put("fdWorkplanId",StringUtils.toString(fdWorkplanId, eiMetadata.getMeta("fdWorkplanId")));	
			map.put("fdFollowPerson",StringUtils.toString(fdFollowPerson, eiMetadata.getMeta("fdFollowPerson")));	
			map.put("fdRs",StringUtils.toString(fdRs, eiMetadata.getMeta("fdRs")));	
			map.put("fdWorkbeforeTime",StringUtils.toString(fdWorkbeforeTime, eiMetadata.getMeta("fdWorkbeforeTime")));	
			map.put("fdWorkbeforeYesorno",StringUtils.toString(fdWorkbeforeYesorno, eiMetadata.getMeta("fdWorkbeforeYesorno")));	
			map.put("fdWorkmoddleTime",StringUtils.toString(fdWorkmoddleTime, eiMetadata.getMeta("fdWorkmoddleTime")));	
			map.put("fdWorkmoddleStatus",StringUtils.toString(fdWorkmoddleStatus, eiMetadata.getMeta("fdWorkmoddleStatus")));	
			map.put("fdWorklastTime",StringUtils.toString(fdWorklastTime, eiMetadata.getMeta("fdWorklastTime")));	
			map.put("fdWorklastOver",StringUtils.toString(fdWorklastOver, eiMetadata.getMeta("fdWorklastOver")));	
			map.put("fdWorklastSafe",StringUtils.toString(fdWorklastSafe, eiMetadata.getMeta("fdWorklastSafe")));	
			map.put("fdWorkSj",StringUtils.toString(fdWorkSj, eiMetadata.getMeta("fdWorkSj")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdCurrentDate",StringUtils.toString(fdCurrentDate, eiMetadata.getMeta("fdCurrentDate")));	
			
		return map;
	
	}
}